package com.j283_5.wisdom_park.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.j283_5.wisdom_park.common.result.ResultData;
import com.j283_5.wisdom_park.pojo.Announcement;
import com.j283_5.wisdom_park.vo.asset_management.AnnouncementVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author laoda
 * @since 2022-04-28
 */
public interface AnnouncementService  {

    /**
     * 多条件查询资源信息
     * @param ann_name
     * @return
     */
    ResultData findAnnouncement(
            String ann_name,
            Page<Announcement> page
    );

    /**
     * 根据资源id查询详情
     * @return
     */
    ResultData findAnnouncementById(
            @Param("ann_Id") Integer ann_Id
    );

    /**
     * 插入资源
     * @return
     */
    ResultData insertAnnouncement(
            AnnouncementVo announcementVo
    );

    /**
     * 资源删除
     * @param annId
     * @return
     */
    ResultData deleteAnnouncement(
      List<Integer>  annId
    );

    /**
     * 进入资源新增界面
     * @return
     */
    ResultData AnnRoom();
}
